package com.inspur.edp.common.expr.visitor.construct;


import com.inspur.edp.common.expr.spi.ConstructVisitor;
import com.inspur.edp.common.expr.visitor.VisitResult;
import com.inspur.edp.common.type.Type;
import com.inspur.edp.common.type.TypeRefer;

/**
 * @author lizhaorui
 * @date 2025/11/17
 * @description
 */
public class ArrayListConstructorVisitor implements ConstructVisitor {

    public static final String MODE = "arrayList";

    @Override
    public String getType() {
        return MODE;
    }

    @Override
    public VisitResult visit(TypeRefer typeRefer, Type type, String parameters) {
        VisitResult visitResult=new VisitResult( "new ArrayList()");
        visitResult.addImport("java.util.ArrayList");
        return visitResult;
    }
}